package com.xjrsoft.module.visual.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjrsoft.common.page.PageOutput;
import com.xjrsoft.module.visual.dto.VisualReleaseDto;
import com.xjrsoft.module.visual.dto.VisualReleaseHomeDto;
import com.xjrsoft.module.visual.dto.VisualReleaseListDto;
import com.xjrsoft.module.visual.entity.XjrVisualRelease;
import com.xjrsoft.module.visual.vo.VisualReleaseHomeVo;
import com.xjrsoft.module.visual.vo.VisualReleaseVo;

import java.util.List;

/**
 * <p>
 * 看板发布表 服务类
 * </p>
 *
 * @author jobob
 * @since 2021-03-10
 */
public interface IXjrVisualReleaseService extends IService<XjrVisualRelease> {

    PageOutput<VisualReleaseVo> selectPageList(VisualReleaseListDto dto);

    boolean updateVisualRelease(String id, VisualReleaseDto dto);

    PageOutput<VisualReleaseHomeVo> getReleaseInHomePageList(VisualReleaseHomeDto dto);

    void checkReleasedHome(String visualId, String releaseId);

    boolean add(VisualReleaseDto dto);

    boolean update(XjrVisualRelease xjrVisualRelease);

    JSONArray getAllReleaseInHome();
}
